<template>
  <div>
    <el-dialog
      width="560px"
      :title="$t('重新识别确认')"
      :visible.sync="identifyVisible"
      :before-close="taskDialogCancle"
    >
      <div class="content">
        <div class="line-one">
          <div>
            <img src="@/assets/images/data/resource/mark.png" alt="" />
            <span class="confirm-font"
              >{{ $t("确认") }}&nbsp;&nbsp;{{ $t("重新识别") }}&nbsp;&nbsp;{{
                $t("当前所选择的巡检记录")
              }}
            </span>
          </div>
        </div>
        <div class="obj-text">
          {{ $t("注1对当前所选择的巡检记录的原始采集资源进行重新识别") }}<br />
          {{ $t("重新识别的结果将覆盖原先的识别结果和巡检报告") }}<br />
          {{ $t("注2重新识别期间若有任务需执行则顺延") }}<br />
        </div>
      </div>
      <div slot="footer" class="dialog-footer">
        <div class="serch-btn" @click="taskDialogConfirm">{{ $t("确认") }}</div>
        <div
          class="reset-btn"
          style="margin-left: 15px"
          @click="taskDialogCancle"
        >
          {{ $t("取消") }}
        </div>
      </div>
    </el-dialog>
  </div>
</template>
<script>
export default {
  props: {
    identifyVisible: {
      type: Boolean,
      default: false,
      required: true,
    },
  },
  data() {
    return {
      dialogForm: {
        radio: 1,
      },
    };
  },
  created() {},
  methods: {
    /**任务弹确认 */
    taskDialogConfirm() {
      this.$emit("taskDialogConfirm");
    },
    /**弹框取消 */
    taskDialogCancle() {
      this.$emit("taskDialogCancle");
    },
  },
};
</script>
<style lang="scss" scoped>
// 弹框内部样式
.el-dialog {
  position: relative;
  .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 16px;
  }
  .line-one {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    img {
      width: 24px;
      height: 24px;
      vertical-align: middle;
    }
    .confirm-font {
      display: inline-block;
      margin-left: 6px;
    }
    .warn-font {
      color: #ffad30;
    }
  }
  .line-two {
    margin-top: 22px;
  }
  .dialog-footer {
    display: flex;
    justify-content: flex-end;
  }
}
.obj-text {
  width: 75%;
  margin-left: 10px;
  margin-top: 15px;
  padding: 16px;
  box-sizing: border-box;
  text-align: left;
  background-color: rgba(255, 173, 48, 0.06);
  font-size: 11px;
  font-family: SourceHanSansSC-Regular, SourceHanSansSC;
  font-weight: 400;
  color: #ffad30;
  line-height: 17px;
}
::v-deep {
  /**单选框样式*/
  .el-radio {
    .el-radio__label {
      color: #fff;
    }
    .el-radio__input {
      margin-bottom: px(5);
      //选中时的样式
      &.is-checked {
        .el-radio__inner {
          //选中时小圆圈的的颜色
          background-color: #00d1ff;
          border-color: #00d1ff;
        }
        + .el-radio__label {
          //选中时字体的颜色
          color: #00d1ff !important;
        }
      }
    }
  }
}
::v-deep {
  .el-dialog:not(.is-fullscreen) {
    margin-top: 30vh !important;
  }
  .self {
    .el-table__body-wrapper {
      width: 100%;
      max-height: 531px;
      overflow: auto;
    }
  }
}
</style>
